package com.scbo.activity;

import com.scbo.main.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;

public class PreChoseActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// remove title bar
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_pre_chose);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.pre_chose, menu);
		return true;
	}
	@Override
	public void onClick(View v) {
		Intent i = null;
		switch (v.getId()) {
		case R.id.btn_Protoss:
			i = new Intent(this, ChoseVsActivity.class);
			i.putExtra("firstChoice", MainActivity.PROTOSS_CHOICE);
			startActivity(i);
			break;
		case R.id.btn_Terran:
			i = new Intent(this, ChoseVsActivity.class);
			i.putExtra("firstChoice", MainActivity.TERRAN_CHOICE);
			startActivity(i);
			break;
		case R.id.btn_Zerg:
			i = new Intent(this, ChoseVsActivity.class);
			i.putExtra("firstChoice", MainActivity.ZERG_CHOICE);
			startActivity(i);
			break;

		default:
			break;
		}
		
	}

}
